<?php include "../../coresection/connection.php";?>
<?php include "../../coresection/checkSession.php";?>
<?php include "../../coresection/admin-product.php";?>
<?php include "../../coresection/order-list.php";?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <!--網站語言-->
    <meta http-equiv="Content-Language" content="zh-cn">
    <!--網站編碼-->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <!--用於防止被別人引用-->
    <meta http-equiv="Window-target" content="_top"/>
    <!--網頁轉換過渡效果,這是淡出-->
    <meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.Fade(Duration=0.2)">




</head>

<body >


<?php


$new_detail_nid     = addslashes($_REQUEST['detail_nid']);
$new_detail_name    = addslashes($_REQUEST['detail_name']);
$new_detail_price   = addslashes($_REQUEST['detail_price']);
$new_detail_at      = addslashes($_REQUEST['detail_at']);
$new_detail_publish = addslashes($_REQUEST['detail_publish']);





?>


<?

$sql = "update dishes SET

product_name            = '$new_detail_name',
price          = '$new_detail_price',
at           = '$new_detail_at',
publish        = '$new_detail_publish'

where product_id=$new_detail_nid";
$query = mysql_query($sql) or die ('更新detail表product数据失败');
mysql_close($con);

?>






<script type="text/javascript">

    alert("输入信息已保存，点击确认返回继续操作.");
    document.location.href = "detail-list.php?nowpageid=<? echo $nowpageid ?>&sortby=<? echo $sortby?>&nid=<? echo $term_nid ?>&sys_part=<? echo $system_part ?>"

</script>


</body> 件被上传"